import About from '../components/about'
import Hello from '../components/hello'
import { BrowserRouter, Routes, Route, Navigate, NavLink } from 'react-router-dom'

export default () => {
	return (
		<BrowserRouter>
			<NavLink to="/about">关于</NavLink> | <NavLink to="/hello">Hello</NavLink>
			<Routes>
				<Route path="/" element={<Navigate to="/hello" />}></Route>
				<Route path="/about" element={<About />}></Route>
				<Route path="/hello" element={<Hello />}></Route>
			</Routes>
		</BrowserRouter>
	)
}
